cmake_minimum_required(VERSION 3.0)

set(PROJECT_NAME "vision")

project(${PROJECT_NAME})

# add_compile_options(-std=c++11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_BUILD_TYPE Debug)


include_directories(${CMAKE_SOURCE_DIR}/inc ${CMAKE_SOURCE_DIR}/Socket/inc) 
file(GLOB SOURCE_FILES "src/*.cpp" "Socket/src/*.cpp")
add_executable(${PROJECT_NAME} main.cpp ${SOURCE_FILES})

target_compile_options(${PROJECT_NAME} PRIVATE -pthread)
target_link_libraries(${PROJECT_NAME} PRIVATE -pthread)

#JSON_CPP
target_include_directories(${PROJECT_NAME} PRIVATE /usr/local/include)
link_directories(/usr/local/lib)
find_library(JSON_CPP libjsoncpp.a)
target_link_libraries(${PROJECT_NAME} PRIVATE ${JSON_CPP})


